src/isOdd.js
zzmq.dev@gmail.com[dev1]/mathkit[implement-min-n-function-tests] / src / isOdd.js
@ d9db29f0
Download
Ladder Summary
- file Contains the implementation of the isOdd function which determines if a given number is odd.
import { test } from "node:test";
import assert from "node:assert/strict";
export function isOdd(n) {
return n % 2 !== 0;
}